﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Threading;

namespace SQLToolbox.View
{
	/// <summary>
	/// Interaction logic for Splash.xaml
	/// </summary>
	public partial class Splash : Window
	{
		public Splash()
		{
			InitializeComponent();
		}

		private void Window_Loaded(object sender, RoutedEventArgs e)
		{
			this.Version.Text = string.Format("Version: {0}",System.Reflection.Assembly.GetEntryAssembly().GetName().Version.ToString());
            DispatcherTimer t = new DispatcherTimer();
			t.Interval = TimeSpan.FromSeconds(3);
			t.Tick += (s, ex) =>
			{
				t.Stop();
				this.Close();
			};
			t.Start();
		}
	}
}
